package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.UserPayMapper;
import com.shunbo.convenient.service.UserPayService;
import com.shunbo.convenient.vo.UserPay;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class UserPayServiceImpl implements UserPayService {

    @Resource
    private UserPayMapper userPayMapper;

    @Override
    public Integer save(UserPay obj) {
        return userPayMapper.save(obj);
    }

    @Override
    public Integer update(UserPay obj) {
        return userPayMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return userPayMapper.delete(obj);
    }

    @Override
    public UserPay findById(String obj) {
        return userPayMapper.findById(obj);
    }

    @Override
    public List<UserPay> findAll(UserPay obj) {
        return userPayMapper.findAll(obj);
    }

    @Override
    public UserPay findByUserId(String userId) {
        return userPayMapper.findByUserId(userId);
    }
}
